﻿using System;
using ProtoBuf;

namespace LingDong.IndexEntities.Document
{
    [ProtoContract]
    [Serializable]
    public class DocumentOffset
    {
        #region Constructor

        private DocumentOffset()
        {
        }

        public DocumentOffset(long parsedOff, long oriOff)
        {
            this.ParsedDocumentOffset = parsedOff;
            this.OriginalDocumentOffset = oriOff;
        }

        #endregion
        

        #region ToString

        public override string ToString()
        {
            return String.Format("{0}, {1}", ParsedDocumentOffset, OriginalDocumentOffset);
        }

        #endregion

        
        #region Feilds

        [ProtoMember(1)]
        public long ParsedDocumentOffset { get; set; }

        [ProtoMember(2)]
        public long OriginalDocumentOffset { get; set; }

        #endregion
    }
}
